package com.zccoder.boot2.ch13.elasticsearch.entity;

import java.util.Date;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

/**
 * <br>
 * 标题: 书籍实体<br>
 * 描述: 书籍实体<br>
 * 时间: 2018/09/28<br>
 *
 * @author zc
 */

@Document(indexName = "product", type = "book")
@Data
public class BookEntity {

    @Id
    private String id;
    private String name;
    private String message;
    private Date postDate;
    private String type;


}
